<!-- include tpl=head title=核心设置 -->
<link rel="stylesheet" type="text/css" href="css/icomoon.css?version={echo VERSION}" />
<script type="text/javascript" src="{echo add_js('sysmenu.js')}"></script>
<div class="tips">
	{lang您当前的位置：}
	<a href="{echo admin_url('system')}">{lang核心配置}</a>
	<!-- if $id -->
	&raquo; {lang编辑应用}
	<!-- else -->
	&raquo; {lang添加应用}
	<!-- /if -->
</div>
<form method="post" id="ext_post" action="{echo admin_url('system','save')}">
<input type="hidden" id="id" name="id" value="{$id}" />
<div class="table">
	<div class="title">
		{lang名称：}
		<span class="note">{lang设置应用的名称，该名称将在后台左侧/头部显示}</span>
	</div>
	<div class="content"><input type="text" id="title" name="title" class="long" value="{$rs.title}" /></div>
</div>
<!-- if $parent_list -->
<div class="table">
	<div class="title">
		{lang上级项目：}
		<span class="note">{lang设置上级项目}</span>
	</div>
	<div class="content">
		<select name="parent_id" id="parent_id">
			<!-- foreach($parent_list AS $key=>$value) -->
			<option value="{$value.id}"{if $value.id == $pid} selected="selected"{/if}>{$value.title}</option>
			<!-- /foreach -->
		</select>
	</div>
</div>
<script type="text/javascript">
$(document).ready(function() {
	$(".dropdown dt").click(function() {
		$(".dropdown dd ul").toggle();
	});
				
	$(".dropdown dd ul li").click(function() {
		var text = $(this).html();
		$(".dropdown dt span").html(text);
		$(".dropdown dd ul").hide();
		$("#icon").val($(this).find("span.value").html());
	});
	$(document).bind('click', function(e) {
		var $clicked = $(e.target);
		if (! $clicked.parents().hasClass("dropdown"))
			$(".dropdown dd ul").hide();
	});
});
</script>
<style type="text/css">
.dropdown{margin:0;padding:0;}
.dropdown dd, .dropdown dt, .dropdown ul { margin:0px; padding:0px; }
.dropdown dd { position:relative; }
.dropdown dt:hover { color:#5d4617; border: 1px solid #E5E5E5; }
.dropdown dt{ background:#fff url('images/add.png') no-repeat scroll right center; display:block; padding-right:20px; border:1px solid #E5E5E5; width:180px; height:27px;}
.dropdown dt span { cursor:pointer; display:block; padding:5px; }
.dropdown dd ul { background:#fff; border:1px solid #E5E5E5; color:#000; display:none; left:0px; padding:5px 0px; position:absolute; top:2px; width:auto; min-width:200px; list-style:none;height:300px;overflow-y:scroll; }
.dropdown span.value { display:none; }
.dropdown dd ul li{ padding:5px; display:block; }
.dropdown dd ul li:hover { background-color:#d0c9af; }
</style>
<div class="table">
	<div class="title">
		{lang快捷图标：}
		<span class="note">{lang启用快捷图标后，将在桌面显示相应的快捷链接}</span>
	</div>
	<div class="content">
		<input type="hidden" name="icon" id="icon" value="{$rs.icon}" />
		<dl class="dropdown">
			<dt><span><!-- if $rs.icon --><i class="icon-{$rs.icon}" style="font-size:16px;"></i> {$rs.icon}<!-- else -->不使用图标<!-- /if --></span></dt>
			<dd>
			<ul>
				<li>不使用图标<span class="value"></span></li>
				<!-- loop from=$iconlist key=$key value=$value id=$tmpid -->
				<li><i class="icon-{$value}" style="font-size:16px;"></i> {$value}<span class="value">{$value}</span></li>
				<!-- /loop -->
			</ul>
			</dd>
		</dl>
	</div>
</div>
<!-- /if -->

<!-- if $pid && $dirlist -->
<div class="table">
	<div class="title">
		{lang控制层：}
		<span class="note">{lang请不要随意修改，不熟请设为：}<span class="red">list_control.php</span></span>
	</div>
	<div class="content">
		<select name="appfile" id="appfile">
			<!-- foreach($dirlist AS $key=>$value) -->
			<option value="{$value.id}"{if $value.id == $rs.appfile} selected="selected"{/if}>{$value.title}</option>
			<!-- /foreach -->
		</select>
	</div>
</div>
<div class="table">
	<div class="title">
		{lang执行方法：}
		<span class="note">{lang请选择要执行的方法动作，不熟悉请留空}</span>
	</div>
	<div class="content"><input type="text" id="func" name="func" class="long" value="{$rs.func}" /></div>
</div>
<div class="table">
	<div class="title">
		{lang扩展参数：}
		<span class="note">{lang不清楚的请留空}</span>
	</div>
	<div class="content"><input type="text" id="ext" name="ext" class="long" value="{$rs.ext}" /></div>
</div>
<!-- /if -->
<div class="table">
	<div class="title">
		{lang排序：}
		<span class="note">{lang自定义排序，值越小越往前靠}</span>
	</div>
	<div class="content"><input type="text" id="taxis" name="taxis" class="short" value="{$rs.taxis}" /></div>
</div>


<div class="table">
	<div class="content">
		<br />
		<input type="submit" value="{lang提 交}" class="submit2" />
		<br />
	</div>
</div>
</form>

<!-- inc:foot -->